﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace GroupTestingTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            try
            {
                GroupTestingService.GroupTestingServiceClient group_testing =
                    new GroupTestingService.GroupTestingServiceClient();

                List<string> urls = new List<string>();
                urls.Add("http://venus.eas.asu.edu/WSRepository/Services/Encryption/Service.asmx?wsdl");
                urls.Add("http://venus.eas.asu.edu/WSRepository/Services/Encryption/Service.asmx?wsdl");

                String operation_name = "authenticate";

                List<string> arguments = new List<string>();
                arguments.Add("user");
                arguments.Add("password");

                bool results = group_testing.GroupTesting(urls.ToArray(), operation_name, arguments.ToArray());

                String message = "One or more methods are not equal to another method.";
                if (results == true)
                {
                    message = "The return results for the requested operation across all services was equal";
                }

            }
            catch (Exception ex)
            {
                String message =
                    "An Exception occured in WsTesting tester. " + ex.Message;
            }
        }
    }
}
